﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserControl_Manager/MasterPage_Manager.Master"
    AutoEventWireup="true" CodeBehind="ThemSanPham_Manager.aspx.cs" Inherits="TMDT_Nhom1A.Manager.ThemSanPham_Manager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="tk" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="module_round_box_inner">
        <div class="module_round_box_inner2">
            <div class="s5_mod_h3_1">
                <div class="s5_mod_h3_2">
                    <h3 class="s5_mod_h3">
                        <span class="s5_h3_first">Chi tiết sản phẩm </span>
                    </h3>
                </div>
            </div>
            <tk:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </tk:ToolkitScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Panel ID="pncatalogue" Visible="true" runat="server" HorizontalAlign="Center"
                        Style="padding-bottom: 5px; padding-top: 5px">
                        <div>
                            Nhóm sản phẩm chính :
                            <asp:DropDownList ID="dlparentcatalogue" runat="server" OnSelectedIndexChanged="dlparentcatalogue_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>
                        </div>
                        <div>
                            Nhóm sản phẩm :
                            <asp:DropDownList ID="dlchildrencatalogue" runat="server">
                            </asp:DropDownList>
                        </div>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
            <table id="AddProduct" runat="server" border="0" style="width: 100%;">
                <tbody>
                    <tr>
                        <td width="33%" rowspan="4" valign="top">
                            <br>
                            <asp:FileUpload ID="FileUpload1" runat="server" />
                            <br>
                        </td>
                        <td rowspan="1" colspan="2">
                            Tên sản phẩm :
                            <asp:TextBox ID="tbelectricdevicename" runat="server" onkeyup="usernameChecker(this.value);"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbelectricdevicename"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                            <span id="spanAvailability"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="33%" valign="top" align="left">
                            <div id="divnondel" runat="server">
                                <strong>Giá bán lẽ: </strong><span class="productPrice">
                                    <asp:TextBox ID="tbRetailPrice" runat="server" ForeColor="Red" Font-Bold="true"></asp:TextBox>
                                    <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" TargetControlID="tbRetailPrice"
                                        FilterType="Numbers" runat="server">
                                    </tk:FilteredTextBoxExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbRetailPrice"
                                        ErrorMessage="*"></asp:RequiredFieldValidator>
                                    <br />
                                </span><strong>Giá bán sĩ: </strong><span class="productPrice">
                                    <asp:TextBox ID="tbDealerPrice" runat="server" ForeColor="Red" Font-Bold="true"></asp:TextBox>
                                    <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" TargetControlID="tbDealerPrice"
                                        FilterType="Numbers" runat="server">
                                    </tk:FilteredTextBoxExtender>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbDealerPrice"
                                        ErrorMessage="*"></asp:RequiredFieldValidator>
                                </span>
                                <br>
                                </span><strong>Đơn vị tính: </strong><span class="productPrice">
                                    <asp:DropDownList ID="dlCurrency" runat="server">
                                    </asp:DropDownList>
                                </span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a target="_blank" href="https://www.baokim.vn/payment/customize_payment/product?business=ankomart.com@gmail.com&amp;product_name=&gt;8336-800&amp;product_price=

	
		6350000			


&amp;product_quantity=1&amp;total_amount=

	
		6350000			


">
                                <img src="../images/baokim.png" alt="Thanh toán an toàn vo+'i Ba?o Kim !" border="0"
                                    title="Thanh toán trực tuyến an toàn dùng tài khoản Ngân hàng (VietcomBank, TechcomBank, Đông Á, VietinBank, Quân Đội, VIB, SHB,... và thẻ Quốc tế (Visa, Master Card...) qua Cổng thanh toán trực tuyến BảoKim.vn">
                            </a>&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="https://www.baokim.vn/payment_guide/ankomart.html" target="_blank">[Hướng dẫn
                                thanh toán]</a>
                        </td>
                    </tr>
                    <tr>
                        <td rowspan="1" colspan="2">
                            <hr>
                            <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                                <tbody>
                                    <tr>
                                        <td class="ProBody2">
                                            <strong>Hãng : </strong>
                                            <asp:DropDownList ID="dlbrand" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="ProBody2">
                                            <strong>Số lượng : </strong>
                                            <asp:TextBox ID="tbquantity" runat="server"></asp:TextBox>
                                            <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" TargetControlID="tbquantity"
                                                FilterType="Numbers" runat="server">
                                            </tk:FilteredTextBoxExtender>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbquantity"
                                                ErrorMessage="*"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="ProBody2">
                                            <strong>Chất lượng : </strong>
                                            <asp:TextBox ID="tbquanlity" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="ProBody2">
                                            <strong>Kích thước : </strong>
                                            <asp:TextBox ID="tbsize" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="ProBody2" valign="top">
                                            <strong>Mô tả : </strong>
                                            <asp:TextBox ID="tbdescription" TextMode="MultiLine" runat="server" Height="100px"
                                                Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <br>
                            <span style="font-style: italic;"></span>
                        </td>
                    </tr>
                </tbody>
            </table>

            <script type="text/javascript">
                var usernameCheckerTimer;
                var spanAvailability = $get("spanAvailability");

                function usernameChecker(username) {
                    clearTimeout(usernameCheckerTimer);
                    if (username.length == 0)
                        spanAvailability.innerHTML = "";
                    else {
                        spanAvailability.innerHTML = "<span style='color: #ccc;'>checking...</span>";
                        usernameCheckerTimer = setTimeout("checkUsernameUsage('" + username + "');", 750);
                    }
                }

                function checkUsernameUsage(username) {
                    // initiate the ajax pagemethod call
                    // upon completion, the OnSucceded callback will be executed
                    PageMethods.IsUserAvailable(username, OnSucceeded);
                }

                // Callback function invoked on successful completion of the page method.
                function OnSucceeded(result, userContext, methodName) {
                    if (methodName == "IsUserAvailable") {
                        if (result == true)
                            spanAvailability.innerHTML = "<span style='color: DarkGreen;'>Available</span>";
                        else
                            spanAvailability.innerHTML = "<span style='color: Red;'>Unavailable</span>";
                    }
                }
            </script>

            <div style="margin-left: 500px">
                <asp:ImageButton ID="btAdd" ImageUrl="~/images/add-icon.png" runat="server" OnClick="btAdd_Click" />
                <asp:ImageButton ID="btEdit" Visible="false" ImageUrl="~/images/Edit-Document-icon.png"
                    Height="32px" Width="32px" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>
